package com.example.soa_exp2.Service;

import com.example.soa_exp2.Domain.Goods;

import java.util.List;

public interface GoodsService {

    List<Goods> getGoodsList();

    Goods getGoodsById(String id);

    List<Goods> getGoodsByName(String name);

    int deleteGoodsStock(String goods_id, Long stock);

    int addGoodsStock(String goods_id, Long stock);

    int addGoods(Goods goods);

    int updateGoods(Goods goods);

    int deleteGoods(String goods_id);

}
